# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=knights
pkgver=20.04.3
pkgrel=0
pkgdesc="Chess board by KDE with XBoard protocol support"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://www.kde.org/applications/games/knights/"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kdbusaddons-dev kconfigwidgets-dev kcrash-dev ktextwidgets-dev kxmlgui-dev kio-dev kplotting-dev kdoctools-dev kwallet-dev plasma-framework-dev libkdegames-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/knights-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="c6c8af467ec0494a1ce3c21ce299ace47eb6e1441726d17bc512b20bd34c528f337dc8d4554411038a3908459f7c94f8df2d4a4187250afe2a60aa2530e19c39  knights-20.04.3.tar.xz"
